﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="index.aspx.cs" Inherits="Page_Main" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table bgcolor="#DDF1FC" width="100%">
        <tr>
            <td align="center">
                <img src="../images/03.png" />
            </td>
        </tr>
    </table>
    <table width="984" align="center">
        <tr>
            <td>
                <h2 style="font-size: 22px; line-height: 35px; font-weight: normal; font-family: '微软雅黑';
                    color: #228bcd">
                    厂房招租</h2>
                <hr />
            </td>
        </tr>
        <tr>
            <td>
                <style type="text/css">
                    .style1
                    {
                        width: 261px;
                    }
                    .style2
                    {
                        width: 262px;
                    }
                </style>
                首页浏览数:
                <asp:Label ID="lblBrowser" runat="server"></asp:Label>
                <br />
                关键词：<asp:TextBox ID="txtKey" runat="server" Width="368px"></asp:TextBox>&nbsp; &nbsp;
                &nbsp;
                <asp:Button ID="btnSearch" runat="server" Text="·搜 索·" Width="68px" OnClick="btnSearch_Click" />
                <br />
                <br />
                所在地:&nbsp;<a href="index.aspx?areaID=0">全部&nbsp; <a href="index.aspx?areaID=1">龙岗区&nbsp;
                    <a href="index.aspx?areaID=2">罗福 &nbsp;<a href="index.aspx?areaID=3">福田&nbsp; <a
                        href="index.aspx?areaID=4">南山 &nbsp;<a href="index.aspx?areaID=5">盐田 &nbsp;<a href="index.aspx?areaID=6">宝安
                            <br />
                            <br />
                            面&nbsp;&nbsp;积:&nbsp;<a href="index.aspx?proportionID=1">100-500</a>&nbsp; <a href="index.aspx?proportionID=2">
                                500-1000</a>&nbsp; <a href="index.aspx?proportionID=3">1000-3000</a>&nbsp; <a href="index.aspx?proportionID=4">
                                    3000-5000</a>&nbsp; <a href="index.aspx?proportionID=5">5000-1W</a>&nbsp;
                            <a href="index.aspx?proportionID=6">1W以上</a>&nbsp;
                            <br />
                            <br />
                            <div style="border-bottom: 2px solid #3399cc; height: 45px; line-height: 40px; width: 740px;">
                                最新信息</div>
                            <br />
                            <asp:Repeater ID="repeaterCompany" runat="server">
                                <ItemTemplate>
                                    <a href="Page_House.aspx?id=<%#Eval("ID")%>">
                                        <table border="1" bordercolor="#a0c6e5" style="border-collapse: collapse;" width="860"
                                            height="102">
                                            <tr>
                                                <td rowspan="2" width="100">
                                                    <img src="../uploadImage/<%#Eval("saveImage")%>" width="100" height="100" />
                                                </td>
                                                <td class="style1">
                                                    厂房地址
                                                </td>
                                                <td class="style2">
                                                    厂房面积
                                                </td>
                                                <td>
                                                    厂房租金
                                                </td>
                                                <td>
                                                    厂房所属区域
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="style1">
                                                    <%#Eval("address")%><br />
                                                    <td class="style2">
                                                        <%#Eval("proportionSum")%>
                                                    </td>
                                                    <td>
                                                        <%#Eval("rental")%>
                                                    </td>
                                                    <td>
                                                        区域:
                                                        <%# getAreaName(Convert.ToInt32(Eval("areaID")))%>
                                                    </td>
                                        </table>
                                    </a>
                                    <br />
                                </ItemTemplate>
                            </asp:Repeater>
                            <br />
                            <div style="background-color: #dedede; width: 984px;">
                                <asp:Label ID="lblCurrentPage" runat="server"></asp:Label>
                                <asp:HyperLink ID="lnkFrist" runat="server">首页</asp:HyperLink>
                                <asp:HyperLink ID="lnkPrev" runat="server">上一页</asp:HyperLink>
                                <asp:HyperLink ID="lnkNext" runat="server">下一页</asp:HyperLink>
                                <asp:HyperLink ID="lnkEnd" runat="server">尾页</asp:HyperLink>
                            </div>
            </td>
        </tr>
    </table>
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
    <br />
</asp:Content>
